
      
        var i = 1;
		var t;
		var img = $("img");
		var kxz = $("#kxz");
		var div = $("#bigad");
		var li1 = $("#li1");
		var li2 = $("#li2");
		var yuyue = $("#yuyue");
		var yuyue2 = $("#yuyue2");
		var a1 = $("#a1");
		var a2 = $("#a2");
		var a3 = $("#a3");
		var a4 = $("#a4");
		var a5 = $("#a5");
		var t2;

		window.onload = function () {
			var fullWindowWidth = window.innerWidth;
			console.log(fullWindowWidth);
		}

		bigad.onmouseleave = function () {
			t = setInterval(change, 2000);
		}
		bigad.onmouseenter = function () {
			clearInterval(t);
		}
		function change() {
			i++;
			img[0].src = "images/tp" + i + ".jpg";
			if (i == 6) {
				i = 1;
			};
		}
		li1.onclick = function () {
			alert("请电联康总18833005703");
		}
		li2.onclick = function () {
			t2 = setInterval(scroll, 10);
		}

		function scroll() {
			var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
			if (scrollTop > 0) {
				document.documentElement.scrollTop -= 100;
				console.log(scrollTop)
			} else {
				clearInterval(t2);
			}
		}


		yuyue.onmouseenter = function () {
			this.style.backgroundColor = "rgb(238, 198, 170)"
		}
		yuyue.onmouseleave = function () {
			this.style.backgroundColor = "gray"
		}
		yuyue2.onmouseenter = function () {
			this.style.backgroundColor = "rgb(238, 198, 170)"
		}
		yuyue2.onmouseleave = function () {
			this.style.backgroundColor = "gray"
		}

		a1.onmouseenter = function () {
			this.style.color = 'skyblue'
		}
		a2.onmouseenter = function () {
			this.style.color = 'skyblue'
		}
		a3.onmouseenter = function () {
			this.style.color = 'skyblue'
		}
		a4.onmouseenter = function () {
			this.style.color = 'skyblue'
		}
		a5.onmouseenter = function () {
			this.style.color = 'skyblue'
		}

		a1.onmouseout = function () {
			this.style.color = 'white'
		}
		a2.onmouseout = function () {
			this.style.color = 'white'
		}
		a3.onmouseout = function () {
			this.style.color = 'white'
		}
		a4.onmouseout = function () {
			this.style.color = 'white'
		}
		a5.onmouseout = function () {
			this.style.color = 'white'
		}




